package com.jet.merchant.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.jet.core.interceptor.JsonbTypeHandler;
import com.jet.merchant.domain.bo.LoginBo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2025-02-25
 */
@Getter
@Setter
@TableName("m_clerk_account_scan")
@ApiModel(value = "ClerkAccountScan对象", description = "")
public class ClerkAccountScan implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.INPUT)
    private String id;

    @ApiModelProperty("扫码编号")
    private String scanNo;

    @ApiModelProperty("登录信息")
    @TableField(typeHandler = JsonbTypeHandler.class)
    private LoginBo loginInfo;

    @ApiModelProperty("扫码场景")
    private Integer source;

    @ApiModelProperty("状态,1:创建，2:已扫码，3:已过期")
    private Integer status;

    @ApiModelProperty("13位时间戳过期时间")
    private Long expireTime;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("授权类型")
    private String grantType;

    @ApiModelProperty("客户端id")
    private String clientId;

    @ApiModelProperty("客户端秘钥")
    private String clientSecret;
}
